package com.shelpe.services.sustainer.repository.jpa;

import java.util.Date;
import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.sustainer.entity.jpa.Adgroup;

public interface AdgroupRepository extends PagingAndSortingRepository<Adgroup, Long>{

	List<Adgroup> findByDriveTypeAndOnlineStatusAndMaintainedDateBetween(int driveType, String onlineStatus, Date from, Date to);
	
	List<Adgroup> findByDriveTypeAndOnlineStatusAndMaintainedDateIsNull(int driveType, String onlineStatus);
}
